int col_x, col_width;
if (GTK_IS_COLUMN_VIEW_CELL (child))
- column = gtk_column_view_cell_get_column (GTK_COLUMN_VIEW_CELL (child));
+ {
+ column = gtk_column_view_cell_get_column (GTK_COLUMN_VIEW_CELL (child));
+ gtk_column_view_column_get_allocation (column, &col_x, &col_width);
+ }
else
- column = gtk_column_view_title_get_column (GTK_COLUMN_VIEW_TITLE (child));
+ {
+ column = gtk_column_view_title_get_column (GTK_COLUMN_VIEW_TITLE (child));
+ gtk_column_view_column_get_header_allocation (column, &col_x, &col_width);
+ }
- gtk_column_view_column_get_allocation (column, &col_x, &col_width);
gtk_widget_size_allocate (child, &(GtkAllocation) { col_x, 0, col_width, height }, baseline);
}
}